<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>修改密码</title>
	<#include "./comm/meta-base.ftl" />
	<#include "./comm/meta-easyui.ftl" />
	<#include "./comm/meta-comm.ftl" />
</head>
<body>
		

<form id="data_form" role="form" class="page-form"   method="post" >
	<div class="buts-row-top row ">
			<a href="javascript:submitForm();"  class="btn btn-success">
				<i class="fa fa-check"></i>提 交</a>
			<a href="javascript:MainTab.closeTabAndRefresh('修改密码')" class="btn btn-default">
				<i class="fa fa-times"></i>取 消</a>
	</div>
	<div class="but-row-top-shadow"></div>
	

	<div class="form-title">人员基础信息</div>
	<div class="row">
		<div class="form-group col-sm-3">
			<label class="col-sm-4 fm-label">所属公司： </label>
			<div class="col-sm-8 fm-control">
				<label class=" fm-label">${upmsUserVO.companyName} </label>
				<input type="hidden" name="personId" value="${upmsUserVO.personId}" ></input>
			</div>
		</div>
		<div class="form-group col-sm-3">
			<label class="col-sm-4 fm-label">所属部门：</label>
			<div class="col-sm-8 fm-control">
				<label class=" fm-label">${upmsUserVO.departmentName}</label>
			</div>
		</div>
	</div>
	
	<div class="row">
		<div class="form-group col-sm-3">
			<label class="col-sm-4 fm-label">员工姓名： </label>
			<div class="col-sm-8 fm-control">
				<label class=" fm-label">${upmsUserVO.personName} </label>
				
			</div>
		</div>
		<div class="form-group col-sm-3">
			<label class="col-sm-4 fm-label">员工登录名：</label>
			<div class="col-sm-8 fm-control">
				<label class=" fm-label">${upmsUserVO.loginName}</label>
			</div>
		</div>
	</div>
	
	<div class="row">
		<div class="form-group col-sm-3">
			<label class="col-sm-4 fm-label">原密码 </label>
			<div class="col-sm-8 fm-control">
				<input type="hidden" name="isReset" id="isReset" value="false" />
				<input  type="password" name="oldPassword" id="oldPassword" class="form-control easyui-validatebox" 
					data-options="required:true,validType:['length[0,64]','remote[\'${basePath}/person/person-password-validate\',\'oldPassword\']']" />
			</div>
		</div>
	</div>
	
	<div class="row">
		<div class="form-group col-sm-3">
			<label class="col-sm-4 fm-label">新密码 </label>
			<div class="col-sm-8 fm-control">
				<input type="hidden" name="isReset" id="isReset" value="false" />
				<input id="pwd" type="password" name="loginPassword" class="form-control easyui-validatebox" data-options="required:true,validType:['length[0,64]']" />
			</div>
		</div>
	</div>
	<div class="row">
		<div class="form-group col-sm-3">
			<label class="col-sm-4 fm-label">确认密码 </label>
			<div class="col-sm-8 fm-control">
				<input type="password"  name="cfmLoginPassword"  class="form-control easyui-validatebox" data-options="required:true,validType:['equalTo[\'#pwd\']','length[0,64]']" />
			</div>
		</div>
	
	</div>
    
 </form>
</body>
</html>
<script type="text/javascript">
//提交表单
function submitForm(){
	$("#data_form").form('submit', {
		url : '${basePath}/staff/staff-password-update',
		onSubmit: function (){
			showPageShade();//当提交时候，显示遮罩层
			if(!$(this).form('validate')){//页面验证
				hiddenPageShade();//未成功，隐藏遮罩层
				return false;
			}
			return true;
        },
		success : function(result) {
			hiddenPageShade();//成功后，隐藏遮罩层
			//closeWindowRefrresh("修改密码");
			top.location.href="${basePath}/exit";
		}
	});
}
</script>


